package com.czy.model;

import com.czy.enums.Gender;

import java.util.HashMap;
import java.util.Map;

/**
 * @author chenzy
 * @since 2024-02-21
 **/
public abstract class Organism {
    public Integer id;
    public String name;
    /*性别*/
    public Gender gender;
    public int age;
    /*寿命*/
    public int life;
    public Map<Integer,Ability> abilityMap=new HashMap<>();

    public Integer getId() {
        return id;
    }

    public Organism setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Organism setName(String name) {
        this.name = name;
        return this;
    }

    public Gender getGender() {
        return gender;
    }

    public Organism setGender(Gender gender) {
        this.gender = gender;
        return this;
    }

    public int getAge() {
        return age;
    }

    public Organism setAge(int age) {
        this.age = age;
        return this;
    }

    public int getLife() {
        return life;
    }

    public Organism setLife(int life) {
        this.life = life;
        return this;
    }
}
